package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@Data
public class MallSalesroomUpdateDTO {

    @NotNull(message = "门店Id不能为空")
    private Long id;

    @NotBlank(message = "门店名称不能为空")
    @Length(max = 50, message = "门店名称字符数不能超过50")
    private String name;

    @NotBlank(message = "口令不能为空")
    @Length(max = 20, message = "口令字符数不能超过20")
    private String word;
}
